/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DialogoCargando.java
 *
 * Created on 01-mar-2013, 23:12:56
 */
package com.camachosanchez.gui;

/**
 *
 * @author Rolando
 */
public class DialogoCargando extends javax.swing.JDialog {

    /** Creates new form DialogoCargando */
    public DialogoCargando(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        this.setLocationRelativeTo(null);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlContenedor = new javax.swing.JPanel();
        lblCargando = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setResizable(false);
        setUndecorated(true);

        pnlContenedor.setBackground(new java.awt.Color(255, 255, 255));
        pnlContenedor.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.SystemColor.activeCaption));
        pnlContenedor.setForeground(new java.awt.Color(102, 102, 102));
        pnlContenedor.setLayout(new java.awt.BorderLayout());

        lblCargando.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblCargando.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/camachosanchez/recursos/loading.gif"))); // NOI18N
        lblCargando.setText("Espere por favor");
        lblCargando.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        lblCargando.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        lblCargando.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        pnlContenedor.add(lblCargando, java.awt.BorderLayout.CENTER);

        getContentPane().add(pnlContenedor, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel lblCargando;
    private javax.swing.JPanel pnlContenedor;
    // End of variables declaration//GEN-END:variables
}
